package com.xneure.function.operator;

import com.xneure.function.enums.FunctionType;
import com.xneure.function.enums.ParamType;
import com.xneure.function.enums.ResultType;
import com.xneure.function.mode.FunctionBase;
import com.xneure.function.node.FunctionNode;

public class Priority extends FunctionBase{
	private FunctionNode function;

	public Priority(){
		super(FunctionType.SYS);
		appendParam("fun",ParamType.UNKNOWN);
	}

	public FunctionNode getFunction(){
		return function;
	}

	public void setFunctionNode(FunctionNode function){
		this.function = function;
	}

	@Override
	public String getName(){
		return "(";
	}

	@Override
	public ResultType getResultType(){
		return null;
	}

	@Override
	public String getDescription(){
		return null;
	}

	@Override
	protected void initParam(){
	}

	@Override
	public Object getValue(){
		if(null == function){
			return null;
		}
		return function.getFunction();
	}
}
